#include "comdef.h"
#include "hif.h"
#include "usb_drv.h"
#include "cmr_drv.h"
#include "sd_drv.h"

#ifndef _TEST_PATTERN_
int test_clk()
#else
int c_main()
#endif
{
	while (1)
	{
		write_host_internal(HIF_SYS_CLK_EN, HIF_CLK_EN_SD);
		delay(100);
		write_host_internal(HIF_SYS_CLK_EN, HIF_CLK_EN_SD_RAM);
		delay(100);
		write_host_internal(HIF_SYS_CLK_EN, HIF_CLK_EN_CMIF);
		delay(100);
		write_host_internal(HIF_SYS_CLK_EN, HIF_CLK_EN_CMIF_RAM);
		delay(100);
		write_host_internal(HIF_SYS_CLK_EN, HIF_CLK_EN_USB);
		delay(100);
		write_host_internal(HIF_SYS_CLK_EN, HIF_CLK_EN_USB_PHY);
		delay(100);
		write_host_internal(HIF_SYS_CLK_EN, 0);
		delay(100);
		write_host_internal(HIF_SYS_CLK_EN, 0x7F);
		delay(100);
	}
}

